package com.yb.xczx.cloud.content.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yb.xczx.cloud.content.entity.Teachplan;
import com.yb.xczx.cloud.content.mapper.TeachplanMapper;
import com.yb.xczx.cloud.content.service.ITeachplanService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yb.xczx.cloud.content.vo.AddTeachplanVo;
import com.yb.xczx.cloud.content.vo.TeachplanTreeVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 课程计划 服务实现类
 * </p>
 *
 * @author 姚兵
 * @since 2023-05-07
 */
@Service

@Slf4j
public class TeachplanServiceImpl extends ServiceImpl<TeachplanMapper, Teachplan> implements ITeachplanService {


    @Override
    public List<TeachplanTreeVo> treeNodes(Long courseId) {
       return this.baseMapper.selectTreeNode(courseId);
    }

    @Override
    public void add(AddTeachplanVo teachplanVo) {
        log.info("teachplanVo:{}",teachplanVo);
    }
}
